@import (reference) "../../../color.less";
.trade-trade-detail(@content-background-color, @main-font-color, @second-font-color) {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 12px;
  background: @content-background-color;
  transition: all .2s;
  .trade-trade-detail-list-row-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 24px;
    margin: 0 8px;
    color: @second-font-color;
  }
  .trade-trade-detail-list-row-item {
    display: inline-block;
    &[datatype="time"] {
      width: 40%;
      padding-left: 4px;
    }
    &[datatype="price"] {
      width: 30%;
      text-align: right;
    }
    &[datatype="volume"] {
      width: 30%;
      padding-right: 4px;
      text-align: right;
    }
    &[direction="buy"] {
      color: @main-green-color;
    }
    &[direction="sell"] {
      color: @main-red-color;
    }
  }
  .trade-trade-detail-list-container {
    display: flex;
    flex: 1;
    color: @main-font-color;
    margin-bottom: 4px;
    ul {
      li {
        height: 20px!important;
        color: @main-font-color!important;
        font-family: Arial, serif;
      }
    }
  }
}

.trade-trade-detail-night {
  .trade-trade-detail(@content-background-color-night, @main-font-color-night, @second-font-color-night)
}

.trade-trade-detail-day {
  .trade-trade-detail(@content-background-color-day, @main-font-color-day, @second-font-color-day)
}
